int evalRPN(char** tokens, int tokensSize) {
    int stack[10000];    //模拟栈
    int top = -1;   //栈顶指针
    for (int i = 0; i < tokensSize; i++)
    {
        if (strcmp(tokens[i], "+") == 0)
        {
            int right = stack[top--];
            int left = stack[top--];
            stack[++top] = left + right;
        }
        else if (strcmp(tokens[i], "-") == 0)
        {
            int right = stack[top--];
            int left = stack[top--];
            stack[++top] = left - right;
        }
        else if (strcmp(tokens[i], "*") == 0)
        {
            int right = stack[top--];
            int left = stack[top--];
            stack[++top] = left * right;
        }
        else if (strcmp(tokens[i], "/") == 0)
        {
            int right = stack[top--];
            int left = stack[top--];
            stack[++top] = left / right;
        }
        else
        {
            stack[++top] = atoi(tokens[i]); //将字符串强制转为int类型,不能使用(int)强转
        }
    }

    return stack[top];
}